package com.itheima.a05oopextendsdemo05;

/***
 *@title Test
 *@description <TODO description class purpose>
 *@author 12468
 *@version 1.0.0
 *@create 2024/10/22 23:33
 **/
public class Test {
    public static void main(String[] args) {
        // 子类访问父类的无参构造
        Student s = new Student();

        // 子类访问父类的有参构造
        Student s1 = new Student("zhangsan", 18);
        System.out.println(s1.name + "," + s1.age);

    }
}
